home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 November: Tool Chest / Dev.CD Nov 98 TC.toast / Sample Code / Snippets / Development Tools & Languages / DTSCPlusLibrary / Sources / SoundClassTest.cp < prev    next >
Encoding:
Text File  |  1993-01-14  |  1.2 KB  |  43 lines  |  [TEXT/MPS ]

  1. /* _________________________________________________________________________________________________________ //
  2.   Copyright © 1992-93 Apple Computer, Inc. All rights reserved.
  3.   Macintosh Developer Technical Support.C++ Macintosh Toolbox Framework.
  4.   Programmer: Kent Sandvik
  5.   Date: 12/21/92
  6.   Revision comments are at the end of this file.
  7.   ---
  8.   TSound is a simple object that plays sounds     
  9.   TSound.cp contains the TSound member functions. 
  10.   _________________________________________________________________________________________________________ */
  11.  
  12. #ifndef _SOUND_
  13. #include "SoundClass.h"
  14. #endif
  15.  
  16. // Simple test that plays sounds using the TSound class.
  17.  
  18. void main(void)
  19. {
  20.     cout << "Start of the TSound test…\n";
  21.  
  22.     cout << "1: A simple test where a sound is played synchronously\n";
  23.  
  24.     TSound mySound("Moof");
  25.  
  26.     mySound.Play();
  27.  
  28.     TSound mySameSound(9000);                    // use the other constructor
  29.     mySameSound.Play();
  30.  
  31.     cout << "End of the TSound test!\n";
  32. }
  33.  
  34.  
  35. // _________________________________________________________________________________________________________ //
  36.  
  37.  
  38. /*    Change History (most recent last):
  39.   No        Init.    Date        Comment
  40.   1            khs        12/21/92    New file
  41.   2            khs        1/14/93        Cleanup
  42. */
  43.